Skip to main content

Confirm Crypto Withdrawal Request

note

The functions described is accessible only to users with ADMIN privileges.

The confirmCryptoWithdraw mutation allows an admin to approve or deny a cryptocurrency withdrawal request. This involves verifying the withdrawal details and updating the request status accordingly.

Mutation: confirmCryptoWithdraw

Schema:

confirmCryptoWithdraw(
id: Int!,
status: Int!,
deniedReason: String,
code: String!
): Int

Parameters

  • id (Int): The ID of the withdrawal request. This field is mandatory.
  • status (Int): The action to take on the request. Possible values:
    • 1: Approve
    • 2: Deny
  • deniedReason (String): The reason for denial if the request is denied. This field is optional.
  • code (String): The admin's 2FA verification code received via SMS. This field is mandatory.

Return

The mutation returns an integer indicating the updated status of the withdrawal request.

Example Mutation

The following is an example of how to use the confirmCryptoWithdraw mutation to approve or deny a cryptocurrency withdrawal request:

mutation {
confirmCryptoWithdraw(
id: 123,
status: 1,
deniedReason: "",
code: "654321"
)
}

Note

  • If the status is 2 (deny), the deniedReason field should be provided.
  • The code parameter is the 2FA verification code received via SMS.

In this example, the mutation approves the cryptocurrency withdrawal request with ID 123. The status is set to 1 for approval, and the code is provided for 2FA verification. The return value indicates the updated status of the withdrawal request.